package main;


import java.util.ArrayList;

import controler.IndexControler;

public class IndexMain {
	
	/** DOM **/
	public static void main(String[] args) {
		
		// Timer 
		double executionTime = System.currentTimeMillis();
		System.out.println("Indexation begin...");
		
		// Chemins des fichiers de tests
		String path = "tools/Collection";ArrayList<String> tagList = new ArrayList<String>();
		tagList.add("P");
		tagList.add("AUTEUR");
		tagList.add("TITRE");
		
		IndexControler indexControler = new IndexControler();
		indexControler.indexTerm(path, ".xml", tagList);
		
		// Timer
		System.out.println("Execution time of ALL indexation : "+ ((System.currentTimeMillis()-executionTime)/1000) +"s");
		System.out.println("FINISHED");
	}
}